package command.general;

/**
 * @Author：LJ
 * @Description：
 * @Date: 2017/11/30
 * @Modified By:
 */
public class ConcreteCommand1 extends Command {

    //声明自己默认的接收者
    public ConcreteCommand1() {
        super(new ConcreteReceiver1());
    }

    //设置接收者
    public ConcreteCommand1(Receiver receiver) {
        super(receiver);
    }

    @Override
    void execute() {
        //业务处理
        receiver.doSomething();
    }
}
